<template>
	<view v-if="show == true" class="unio2o-coupon-role-alert">
		<view  @click="closed()" class="bg"></view>
		<view class="alert-div" :class="show ? 'animated fast zoomInUp':''">
			<view class="alert-main pd40 bg-w bdr16">
				<image class="alert-img" :src="''"></image>
				<image @click="closed()" class="closed-img" :src="''"></image>
				<view class="text-center pt40 ft18 ftw600 text-default">签到规则</view>
				
				<view class="mt20 ft14 text-info">
					<text>
						•	签到就送1-5个不等积分，随机送！
						
						•	积分可去积分商城兑换商品
						
						•	成功邀请好友注册即可补签一次
						
						•	1周连续签到7天可获得3次抽奖机会，奖品为指定商家优惠券
						
						•	PLUS会员签到积分翻倍
					</text>
				</view>
				
			</view>
		</view>
	
	</view>
</template>

<script>
	export default{
		props:{
			show:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return {
				
			}
		},methods:{
			closed(){
				this.$emit('closed',true);
			}
		}
	}
</script>

<style>
	.unio2o-coupon-role-alert{
		width: 100%;
		height: 100vh;
		z-index: 400;
		position: fixed;
		left: 0;
		top: 0;
		
	}
	
	.unio2o-coupon-role-alert .bg{
		position: fixed;
		width: 100%;
		height: 100vh;
		background: rgba(0,0,0,.3);
		left: 0;
		top: 0;
		z-index: 401;
	}
	
	.unio2o-coupon-role-alert .alert-div{
		position: fixed;
		width: 630rpx;
		left: calc(50% - 315rpx);
		top: 50%;
		transform: translateY(-50%);
		z-index: 402;
	}
	.unio2o-coupon-role-alert .alert-main{
		position: relative;
		width: 100%;
	}
	.unio2o-coupon-role-alert .alert-img{
		position: absolute;
		width: 120rpx;
		height: 120rpx;
		left: calc(50% - 60rpx);
		top: -60rpx;
	}
	.unio2o-coupon-role-alert .closed-img{
		position: absolute;
		width: 88rpx;
		height: 88rpx;
		right: -44rpx;
		top: -44rpx;
	}
</style>